#ifndef __ADlink_H__
#define __ADlink_H__
#include <stdlib.h>

typedef struct packet_link{
	struct packet_link *next;
			
	struct iphdr *iph;
	uint16_t ipsize;
	uint16_t rawsize;
	u32 packet_flag;
}packet_link_t;

typedef struct flow_link{
	struct flow_link *next;
	struct flow_link *pre;

	u32 src_ip;
	u32 dst_ip;
	u16 src_port;
	u16 dst_port;

	struct packet_link *head_packet ;
	u32 protocol;
	u32 get_flag;
	time_t begin;
	time_t end;

	u32 packet_count;
}flow_link_t;

#endif
